Skip to main content

FareySequence

FareySequence[n] generates the Farey sequence of order n.

FareySequence[n,k] gives the kth element of the Farey sequence of order n.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.